import {createRouter, createWebHistory} from 'vue-router'
import AppLayout from "@/components/layout/AppLayout.vue";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'home',
      component: AppLayout,
      meta: {
        title: "首页",
      },
      children: [
        {
          path: '',
          name: 'Home',
          component: () => import("@/views/home/home.vue")
        },
      ]
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import("@/views/login/LoginIndex.vue")
    },
  ]
})

export default router

// Below is partial code of D:/AllTest/Vite3-人力资源/Vite3-RL/src/App.vue: